package com.tianzeculture.stagebao.activity.video;

import android.net.Uri;

import com.tianzeculture.stagebao.R;
import com.tianzeculture.stagebao.activity.video.widget.media.IRenderView;
import com.tianzeculture.stagebao.activity.video.widget.media.IjkVideoView;
import com.tianzeculture.stagebao.base.BaseActivity;
import com.tianzeculture.stagebao.network.enity.MSG;

import butterknife.BindView;

/**
 * Created by Administrator on 2018/5/29 0029.
 */

public class VideoPlayerActivity extends BaseActivity {

    @BindView(R.id.ijkVideoPlayer)
    IjkVideoView ijkVideoView;

    @Override
    public void initUI() {
        super.initUI();
        ijkVideoView.setVideoURI(Uri.parse("http://zv.3gv.ifeng.com/live/zhongwen800k.m3u8"));
        ijkVideoView.start();
    }

    @Override
    public void refreshUI(int taskId, MSG msg) {
        super.refreshUI(taskId, msg);
    }

    @Override
    protected int getLayoutResID() {
        return R.layout.activity_videoplayer;
    }
}
